package com.hyperfix.washer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyperfix.models.washer.pojos.ParamConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author JiangChunYu
 * 2024/4/24
 */
@Mapper
public interface ParamConfigMapper extends BaseMapper<ParamConfig> {
    @Select("select * from param_config where pipeline_id = #{pipelineId} and type = #{type}")
    ParamConfig selectOne(@Param("pipelineId") Integer pipelineId, @Param("type") String type);
}
